home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / skatecart.swf / scripts / DefineButton2_71 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-11-19  |  640 b   |  41 lines

  1. on(release){
  2.    set("/:lap","0");
  3.    set("/:jump","0");
  4.    set("/:cop","0");
  5.    stopAllSounds();
  6.    gotoAndPlay(31);
  7.    set("/:score","0");
  8.    set("/:rscore","0");
  9.    tellTarget("/INSTRUCT")
  10.    {
  11.       gotoAndStop(1);
  12.    }
  13.    tellTarget("/B/bike")
  14.    {
  15.       gotoAndStop(1);
  16.    }
  17.    tellTarget("/B")
  18.    {
  19.       gotoAndStop(3);
  20.    }
  21.    tellTarget("/stopper")
  22.    {
  23.       gotoAndStop(1);
  24.    }
  25.    tellTarget("/side2")
  26.    {
  27.       play();
  28.    }
  29.    tellTarget("/side1")
  30.    {
  31.       play();
  32.    }
  33.    if(eval("/:sound") eq "yes")
  34.    {
  35.       tellTarget("_level1/")
  36.       {
  37.          gotoAndPlay(2);
  38.       }
  39.    }
  40. }
  41.